home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / a_utils / yacc / occam.lha / occam / README < prev    next >
Text File  |  1989-08-22  |  1KB  |  38 lines

  1.  
  2. These are two Occam recognisers, defined with yacc & handcrafted lexers.
  3. The Occam recogniser was developed as a lex & yacc learning exercise.
  4. The one for Occam is unambiguous. The one for Occam2 is ambiguous and requires
  5. work to tidy up the syntax. This is mainly because the Occam2 definition is a
  6. rather unsuited for yacc, as defined by the Occam2 Language definition by David
  7. May.
  8.  
  9. The most original part of this is the lex routines which deal with Occam's
  10. indentation features. These recognisers are offered because periodically
  11. I see people on the net asking for an Occam lex & yacc definition.
  12.  
  13. To build a compiler from this requires a LOT more work. I hope someone
  14. finds this useful, however I do not intend to maintain it. Hence I am
  15. placing this in the public domain.
  16.  
  17. Files supplied:
  18.  
  19. README        - this file!
  20. Makefile    - simple UNIX makefile
  21.  
  22. occam.y        - Occam yacc specification
  23. occamlex.c    - Occam lexer
  24.  
  25. occam2.y    - Occam2 yacc specification
  26. occam2lex.c    - Occam2 lexer
  27.  
  28. test1        )
  29. test2        )- set of Occam test files for occam.
  30. test3        )
  31. test4        )
  32.  
  33. Have fun!
  34.  
  35. Peter Polkinghorne ( pjmp@uk.co.gec-rl-hrc or ...!mcvax!ukc!hrc63!pjmp )
  36. GEC Hirst Research Centre, East Lane, Wembley, Middlesex, UK
  37.  
  38.